package net.boyandi.picback;

import net.boyandi.picback.utils.Files;

import org.joda.time.LocalDateTime;

/**
 * @author Ilya Boyandin
 */
public class FolderScanResult {

    private final String name;
    private final int numStarred;
    private final long sizeStarred;
    private final int numNonStarred;
    private final long sizeNonStarred;
    private final String scanStartFolder;
    private final String relativePath;
    private final LocalDateTime date;
    private final boolean isManagedByPicasa;
    
    public FolderScanResult(String name, int numStarred, long sizeStarred,
            int numNonStarred, long sizeNonStarred,
            String folderToScan,
            String path,
            LocalDateTime date,
            boolean isManagedByPicasa) {
        this.name = name;
        this.numStarred = numStarred;
        this.sizeStarred = sizeStarred;
        this.numNonStarred = numNonStarred;
        this.sizeNonStarred = sizeNonStarred;
        this.scanStartFolder = folderToScan;
        this.relativePath = path;
        this.date = date;
        this.isManagedByPicasa = isManagedByPicasa;
    }
    
    public String getName() {
        return name;
    }
    
    public int getNumStarred() {
        return numStarred;
    }
    
    public int getNumNonStarred() {
        return numNonStarred;
    }

    public long getFullSize() {
        return sizeStarred + sizeNonStarred;
    }
    
    public String getPath() {
        return Files.concatPathParts(scanStartFolder, relativePath);
    }

    public String getRelativePath() {
        return relativePath;
    }

    public long getSizeNonStarred() {
        return sizeNonStarred;
    }
    
    public long getSizeStarred() {
        return sizeStarred;
    }
    
    public LocalDateTime getDate() {
        return date;
    }

    public String getScanStartFolder() {
        return scanStartFolder;
    }
    
    public boolean isManagedByPicasa() {
        return isManagedByPicasa;
    }
    
}
